import requestPlat from '@/common/requestPlat'
import Qs from 'qs';

// 新增客户标签
export let addClientLabel = (data) => {
	return requestPlat({
		method: 'post',
		url: `customer/label/authorize/add?teamId=${data.teamId}&title=${data.title}&type=${data.type}`,
	})
}
// 编辑客户标签
export let editClientLabel = (data) => {
	return requestPlat({
		method: 'post',
		url: `customer/label/authorize/edit?teamId=${data.teamId}&title=${data.title}&type=${data.type}`,
	})
}
// 删除客户标签
export let delClientLabel = (data) => {
	return requestPlat({
		method: 'post',
		url: `customer/label/authorize/del?opid=${data.opid}`,
	})
}
// 客户标签列表
export let listClientLabel = (params) => {
	return requestPlat({
		method: 'get',
		url: `customer/label/authorize/list`,
		params
	})
}